<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>招标项目管理</title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %> 
    <!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    <!-- 操作列更多弹窗 -->
    <div class="box box-primary" id="more" style="width:100px;height:35px;background-color:#2C3B41;position:absolute;z-index:9999;left:850px;top:100px;display:none;font-size:12px;border-top-color:#2C3B41;">
            <div class="box-body home-message" id="moreOp">
            </div>
    </div>

    <section class="content-header">
        <h1>详情</h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
            <li class="active"><a href="#">药品招标管理</a></li>
            <li class="active"><a href="#">评标管理</a></li>
            <li class="active"><a href="#">评分结果查看</a></li>
        </ol>
    </section>
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
                <div class=" form-inline">
                
                	<div class="form-group form-group-xs">
                    	<label>得分：</label>
                        <input class="form-control" type="text" id="getScore" placeholder="得分" />
                    </div>
                	<div class="form-group form-group-xs">
                    	<label>评分对象类型：</label>
                        <input class="form-control" type="text" id="scoreobject" placeholder="评分对象类型" />
                    </div>
                	
                     
                    <button type="button" onclick="gridSerch();" class="btn btn-success btn-sm"> 查&nbsp;询</button>
                </div>
            </div>
        </div>
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
                
		<div class=" box box-warning bottongroup">
           <a href="toScreResultList.html?projId=${param.projId}" class="btn btn-default btn-sm" >返&nbsp;回</a>
        </div>

    </section>
    <%@ include file="/WEB-INF/component/commonJS.jsp" %> 
    <script type="text/javascript">
    
        $(function () {
        	if("${msg}"){
        		$.alert("${msg}","warn");
        	}
            $("#gridlist").jqGrid({
                url: "${ctx}/bidScoreRule/getScoreResultDetail.html",
                mtype: "POST",
                datatype: "json",
                autowidth: true,
                height: 270,
                colNames: [ '得分','信息详情','评分对象类型'],
                colModel: [
                    { name: 'getScore', width: 60, align:"center" ,sortable: false},
                    { name: 'detail', width: 80, align:"center" ,sortable: false},
                    { name: 'scoreobject', width: 80 , align:"center",sortable: false,
                    	formatter:function(val,opts,rowdata){
                    		var str="";
                    		if(val==1){
                    			return str="企业资质";
                    		}else if(val==2){
                    			return str="药品资质";
                    		}else if(val==3){
                    			return str="其他";
                    		}
                    		return str;
                    }}
                    
                ],
                rowNum: 20,
                rowList: [10,20,50,100],
                rownumbers: true,
                pager: "#gridpage",
                //multiselect: true, 
                viewrecords: true,
                caption: "${name}&nbsp;&nbsp;-${qualityspecName}  -评分结果列表",
                jsonReader: {
                    repeatitems: false,
                    id: "bidProjdrugsScoreId"
                },
	            gridComplete: function(){
	            	var page = $("#gridlist").jqGrid('getGridParam','page');
	        		var rows = $('#gridlist').getGridParam("rowNum");
	        		var maxnum = (rows*page).toString();
	        		var len = (maxnum.length)*10;
	        		$('.jqgfirstrow').find('td').eq(0).css('width',len+'px');
	            	$('#gridlist_rn').css('width',len+'px');
	            }
            });
            $("#gridlist").jqGrid('navGrid', '#gridpage', { add: false, edit: false, del: false, search: false, refresh: false });
            $(window).trigger("resize");  
        });
        

        //查询
        function gridSerch() {
            var getScore = $("#getScore").val();
            var scoreobject = $("#scoreobject").val();
            $("#gridlist").jqGrid('setGridParam',{  
                datatype:'json',
                postData:{
                		"getScore":getScore,
                		"scoreobject":scoreobject}
            }).trigger("reloadGrid"); //重新载入  
        }
        
        
      
	   
 
    </script>
</body>
</html>